function togglePasswordVisibility() {
    var passwordField = document.getElementById('password');
    var eyeIcon = document.querySelector('.eye-icon');

    // 如果当前是密码类型，则切换为文本类型显示密码
    if (passwordField.type === "password") {
        passwordField.type = "text";
        eyeIcon.textContent = "🙈";  // 可以改变眼睛图标为闭眼图标
    } else {
        passwordField.type = "password";
        eyeIcon.textContent = "👁️";  // 恢复为眼睛图标
    }
}
